#include <stdio.h>
#include <string.h>
typedef struct{
    char name[25],id[25];
    int score[5],tol;
    double avg;
}student;
int main(){
    student stu;
    gets(stu.name);
    gets(stu.id);
    stu.tol = 0;
    for(int i=0;i<5;i++){
        scanf("%d",&stu.score[i]);
        stu.tol+=stu.score[i];
    }
    stu.avg=stu.tol;
    stu.avg/=5.0;
    for(int i=0;i<5;i++){
        for(int j=i+1;j<5;j++){
            if(stu.score[i]<stu.score[j]){
                int t=stu.score[i];
                stu.score[i] = stu.score[j];
                stu.score[j] = t;
            }
        }
    }
    student *p = &stu;
    printf("Name:%s\n",p->name);
    printf("ID:%s\n",p->id);
    printf("Score:");
    for(int i=0;i<4;i++){
        printf("%d ",p->score[i]);
    }
    printf("%d\n",p->score[4]);
    printf("average:%.2lf total:%d\n",p->avg,p->tol);
    //free(p);
    return 0;
}